<%-- 
    Document   : _menu
    Created on : 12/07/2014, 12:21:28 AM
    Author     : MilerIvan
--%>
<%@page import="com.ventas.bean.Usuario"%>
<%
    HttpSession sesion = request.getSession();
    Usuario usuario = (Usuario) sesion.getAttribute("sesUsuario");
    if (usuario == null) {
        response.sendRedirect("index.jsp");
    }
%>
<div id="wrapper">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">SIVA</a>
    </div>
    <!-- /.navbar-header -->

    <ul class="nav navbar-top-links navbar-right"> 
        <!-- /.dropdown -->
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <i class="fa fa-user fa-fw"></i> <% if (usuario != null) {out.print(usuario.getVar_usuario_name());}%> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user" >  
                <li><a id="salir" href="LogoutXML"><i class="fa fa-sign-out fa-fw"></i> Salir</a>                    
                </li>
            </ul>
            <!-- /.dropdown-user -->
        </li>
        <!-- /.dropdown -->
    </ul>
    <!-- /.navbar-top-links -->

    <div class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">  
                          
                <li>
                    <a href="CargaIngresoProductoXML"><i class="fa fa-dashboard fa-fw"></i> Productos</a>
                </li>               
                <li>
                    <a href="CargaIngresoClienteXML"><i class="fa fa-table fa-fw"></i> Clientes</a>
                </li>
                <li>
                    <a href="CargaIngresoPersonalXML"><i class="fa fa-edit fa-fw"></i> Personal</a>
                </li>
                <li>
                    <a href="CargaIngresoLocalComercialXML"><i class="fa fa-edit fa-fw"></i> Locales</a>
                </li>
                <li>
                    <a href="cargaVentaXml"><i class="fa fa-edit fa-fw"></i> Ventas</a>
                </li>
                
            </ul>
            <!-- /#side-menu -->
        </div>
        <!-- /.sidebar-collapse -->
    </div>
    <!-- /.navbar-static-side -->
</nav>
